{php $xinzis = dr_string2array($xinzi);}
{php $zpyqs = dr_string2array($zpyq);}

{php $zhaopinbiao = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_zhaopin')->where('cid', $id)->where('leixing', 1)->where('uid', $member.uid)->get()->getRowArray();}
<div class="d-shang-15">
	<div class="d-kuan d-beijingyanse-hong d-yuanjiao-10 ">
		<div class="d-neikuang-10">
			<div class="col-md-6">
				<div class="d-jiacu" style="color: #ef611a;">招聘要求</div>
				<div>
					<span class="d-zitiyanse-hui">薪资待遇</span>
					<span class="d-wenzi-26 d-shang-10" style="color: #ff7171;">{$xinzis['dijia']}</span>
					<span class="d-wenzi-26 d-shang-10" style="color: #ff7171;">~</span>
					<span class="d-wenzi-26 d-shang-10" style="color: #ff7171;">{$xinzis['gaojia']}</span>
					<span class="d-zitiyanse-hui">元 / 
					{if $xinzis['danwei'] == '1'}
					月
					{elseif $xinzis['danwei'] == '2'}
					天
					{elseif $xinzis['danwei'] == '3'}
					小时
					{/if}
					</span> 
					
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">学历要求</span>
					<span class="d-zuo-10">
						{if $zpyqs['xueli'] == '1'}
						本科
						{elseif $zpyqs['xueli'] == '2'}
						大专
						{elseif $zpyqs['xueli'] == '3'}中专
						{elseif $zpyqs['xueli'] == '4'}高中
						{elseif $zpyqs['xueli'] == '5'}研究生
						{elseif $zpyqs['xueli'] == '6'}博士
						{elseif $zpyqs['xueli'] == '7'}不限
						{elseif $zpyqs['xueli'] == '8'}初中
						{/if}
					</span>
					
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">性别要求</span>
					<span class="d-zuo-10">
						{if $zpyqs['xingbie'] == '1'}男
						{elseif $zpyqs['xingbie'] == '2'}女
						{elseif $zpyqs['xingbie'] == '10'}男女不限
						{/if}
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">招聘人数</span>
					<span class="d-zuo-10">
						{$zprs} (人)
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">工作时间</span>
					<span class="d-zuo-10">
						{$gzsj}
					</span>
					<span class="">
						~
					</span>
					<span class="">
						{$xbsj}
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">工作经验</span>
					<span class="d-zuo-10">
						{if $zpyqs['gongling'] == '1'}1年以上
						{elseif $zpyqs['gongling'] == '2'}2年以上
						{elseif $zpyqs['gongling'] == '3'}3年以上
						{elseif $zpyqs['gongling'] == '4'}4年以上
						{elseif $zpyqs['gongling'] == '5'}5年以上
						{elseif $zpyqs['gongling'] == '6'}6年以上
						{elseif $zpyqs['gongling'] == '7'}7年以上
						{elseif $zpyqs['gongling'] == '8'}8年以上
						{elseif $zpyqs['gongling'] == '9'}9年以上
						{elseif $zpyqs['gongling'] == '10'}10年以上
						{elseif $zpyqs['gongling'] == '11'}不限
						{/if}
					</span>
					<span class="d-zuo-10">
						{if $zpyqs['dinianling'] == '18'}18
						{elseif $zpyqs['dinianling'] == '16'}16
						{elseif $zpyqs['dinianling'] == '17'}17
						{elseif $zpyqs['dinianling'] == '20'}20
						{elseif $zpyqs['dinianling'] == '23'}23
						{elseif $zpyqs['dinianling'] == '25'}25
						{elseif $zpyqs['dinianling'] == '30'}30
						{elseif $zpyqs['dinianling'] == '35'}35
						{elseif $zpyqs['dinianling'] == '40'}40
						{elseif $zpyqs['dinianling'] == '45'}45
						{elseif $zpyqs['dinianling'] == '50'}50
						{elseif $zpyqs['dinianling'] == '55'}55
						{elseif $zpyqs['dinianling'] == '60'}60
						{elseif $zpyqs['dinianling'] == '61'}60以上
						{/if}
					</span>
					<span class="">~</span>
					<span class="">
						{if $zpyqs['gongnianling'] == '18'}18岁
						{elseif $zpyqs['gongnianling'] == '20'}20岁
						{elseif $zpyqs['gongnianling'] == '25'}25岁
						{elseif $zpyqs['gongnianling'] == '30'}30岁
						{elseif $zpyqs['gongnianling'] == '35'}35岁
						{elseif $zpyqs['gongnianling'] == '40'}40岁
						{elseif $zpyqs['gongnianling'] == '45'}45岁
						{elseif $zpyqs['gongnianling'] == '50'}50岁
						{elseif $zpyqs['gongnianling'] == '55'}55岁
						{elseif $zpyqs['gongnianling'] == '60'}60岁
						{elseif $zpyqs['gongnianling'] == '61'}60以上
						{elseif $zpyqs['gongnianling'] == '0'}以上
						{/if}
					</span>
				</div>
				
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">工作地区</span>
					<span class="d-zuo-10">
					{dr_linkage('address', $gongzuodiqu, 1, 'name')}-
					{dr_linkage('address', $gongzuodiqu, 2, 'name')}-
					{dr_linkage('address', $gongzuodiqu, 3, 'name')}
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">工作地址</span>
					<span class="d-zuo-10">{$gongzuodizhi}</span>
				</div>
				
				
				<div class="d-clear"></div>
			</div>
			<div class="col-md-6 ">
				<div class="d-kuan d-shang-20 d-kuan-160 d-beijing-fenhong d-yuanjiao-10 d-wenzi-juzhong d-zitiyanse-bai d-kuan-juzhong">
					{if $member}
					<a id="d-zhaopin-lianxi" class="d-hanggao-40" style="" onclick="javascript:d_zhaopin_lianxi();">
						<i class="fa fa-whatsapp"></i> 点击查看
					</a>
						{if $zhaopinbiao}
							<a id="d-zhaopin-lianxi-yc" class=" d-hanggao-40" style="" >
								<i class="fa fa-whatsapp"></i> 已聘到啦 
							</a>
						{else}
							<a id="d-zhaopin-lianxi-yc" class=" d-hanggao-40" style="" onclick="javascript:d_zhaopin_lianxi();">
								<i class="fa fa-whatsapp"></i>  {$zplx} <div>{$zpch} </div>
							</a>
							
						{/if}
					{else}
					<a class="d-hanggao-40" style="" href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
						<i class="fa fa-whatsapp"></i> 登录后查看
					</a>
					{/if}
				</div>
				
			</div>
			<div class="d-clear"></div>
			<div class="col-md-12 ">
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">岗位福利</span>
					{if dr_in_array(1, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">五险</span>{/if}
					{if dr_in_array(2, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">公积金</span>{/if}
					{if dr_in_array(3, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">五险一金</span>{/if}
					{if dr_in_array(4, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">员工旅游</span>{/if}
					{if dr_in_array(5, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">年终奖金</span>{/if}
					{if dr_in_array(6, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">股票期权</span>{/if}
					{if dr_in_array(7, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">定期体检</span>{/if}
					{if dr_in_array(8, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">专业培训</span>{/if}
					{if dr_in_array(9, (array)$fuli)}<span class="d-zuo-10 d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">绩效奖金</span>{/if}
				</div>
			</div>
		</div>
			<div class="d-clear"></div>
			
		<!---->
		<div class="d-shang-15">
			<div class="d-yuanjiao-10-10-xia d-beijing-hongse-1">
				<div class="d-jindu-biaoti-hongse-1" >招聘进度</div>
					<div class="d-jindu-kuang">
						<div class="d-jindu-neikuang">
							<div class="d-jindu-kuan100">
								<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
									<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
								</div>
							</div>
				            <div class="d-jindu-ziti {if $zhaopinbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
								招聘中...
							</div>
							<div class="d-jindu-riqi ">
								{dr_date($_inputtime, 'Y-m-d')}
							</div>
						</div>
				        <div class="d-jindu-neikuang d-quxian-0">
							<div class="d-jindu-kuan100">
									<div class="d-jindu-jtiao-hongse d-jindu-right d-jindu-hongse-1 {if !$zhaopinbiao}d-jindu-guodu-hongse{/if}">
									</div>
									{if $zhaopinbiao}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
										</div>
									{else}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zushijian.png" class="d-beijing-baise">
										</div>
									{/if}
							</div>
							<a id="d_bug_paiqi_{$id}" data-id="{$id}" data-quanid="{$index.id}" class="d-zhaopin-jindu">
								<div class="d-jindu-ziti {if $zhaopinbiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
									已聘到啦
								</div>
							</a>
							<div class="d-jindu-riqi">
								{dr_date($zhaopinbiao['inputtime'], 'Y-m-d')}
							</div>
						</div>
						
						
					</div>
				</div>
			
		</div>
		<!---->
	</div>
	
	<div class="d-kuan d-shang-15">
		<div class="d-kuan d-shang-15 d-wenzi-18 d-xia-15 d-wenzi-juzhong d-jiacu">职位描述</div>
		
	</div>
	<div class="d-clear"></div>
	
</div>

<style>
.d-beijingyanse-hong {
	background-color: #fff6f6;
	border-radius: 10px !important;
}
.xia-20 {
	margin-bottom: 20px;
	
}
</style>


<script>
$('#d-zhaopin-lianxi-yc').hide();
function d_zhaopin_lianxi() {
	if ($('#d-zhaopin-lianxi-yc').is(':hidden')) {
		$('#d-zhaopin-lianxi-yc').show();
		$('#d-zhaopin-lianxi').hide();
	} else {
		$('#d-zhaopin-lianxi-yc').hide();
		$('#d-zhaopin-lianxi').show();
		//window.location.href = 'tel:{$zplx}';
	}
}
{if $uid == $member.uid}
	 // 招聘
	 $(".d-zhaopin-jindu").click(function(){
		 var id = $(this).data("id");
		 var quanid = $(this).data("quanid");
		 $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=zhaopin&id="+id+"&quanid="+quanid, function(data){
			 dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
			 if (data.msg.value=="已聘到啦") {
				window.location.reload();
			}else{
				window.location.reload();
			}
		 }, 'json');
	 });
{/if}
</script>